<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
session_start();

class jx_cuenta extends CI_Controller {

    private $user;

    public function __construct() {
        parent::__construct();
        $this->load->model('_usuarioM');
        $this->user = $_SESSION['usuario']['id_usuario'];
    }

    public function index() {
        if (!empty($_POST)) {
            
        }
    }

    public function verificar() {
        if (!empty($_POST)) {
             $this->escapar($_POST);
             $pass=$_POST['password'];
             $user=$this->_usuarioM->get($this->user);
             if($user[0]->password==$pass){
                 echo "1";
             }else{
                 echo "0";
             }
        }
    }

   
}
